<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich" xml:lang="en">
<head>
<title>题库类别信息修改</title>
<meta http-equiv="keywords" content="enter,your,keywords,here" />
<meta http-equiv="description"
	content="A short description of this page." />
<link href="#{facesContext.externalContext.requestContextPath}/css/public.css" rel="stylesheet" type="text/css"
	media="screen" />
<link href="#{facesContext.externalContext.requestContextPath}/css/main.css" rel="stylesheet" type="text/css"
	media="screen" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<!-- rich:message style-->
<style type="text/css">
	.rich-message-label{
		color:red;
	}
</style>
</head>
<body style="background-color: #ffffff">
<h:form>
	<div id="right">
	<div id="msgid" class="error pt10p bcf c0 tal" style="display:">
		<a4j:outputPanel  id="msgPaneladd">
		<center>
			<h:outputText styleClass="cff" value="#{QuestionClassBB.msg}" />
		</center>
	</a4j:outputPanel>
	</div>
	<div class="tablelist">
	<table width="100%" border="1" cellpadding="0" cellspacing="0"
		bordercolor="#c3c3c3" style="border-collapse: collapse">
		<tr>
			<td>
			<h:inputHidden value="#{QuestionClassBB.questionClass.tp_classid}" />
			<span class="cff">*</span>类别名称
			<h:inputText id="tp_classname" class="style_input" value="#{QuestionClassBB.questionClass.tp_classname}">
				<f:validateLength maximum="50" />
				<rich:ajaxValidator event="onblur"/>
			</h:inputText>
			<span class="cff"> <rich:message for="tp_classname"
					showSummary="true" showDetail="false" /> </span>
			</td>
			<td>类别位置<h:selectOneMenu
							class="style_input" value="#{QuestionClassBB.questionClass.tp_superid}">
							<f:selectItem />
							<f:selectItems value="#{otherParamBB.selectItems_questionClasss}" />
						</h:selectOneMenu></td>
		</tr>
		<tr>
			<td colspan="2"><span class="cff">*</span>描述<label>
			<h:inputTextarea id="tp_err_desc" value="#{QuestionClassBB.questionClass.tp_descri}" class="style_textarea" 
			required="true" /> </label></td>
		</tr>
		<tr>
			<td colspan="2"><rich:message for="tp_err_desc" showSummary="true" showDetail="false" /></td>
		</tr>
		<tr>
			<td colspan="2"><span class="cff">*</span>备注 <label> <h:inputTextarea id="tp_scenedesc"
				value="#{QuestionClassBB.questionClass.tp_remark}" class="style_textarea" required="true"/> </label></td>
		</tr>
		<tr>
			<td colspan="2"><rich:message for="tp_scenedesc" showSummary="true" showDetail="false" /></td>
		</tr>
	</table>
	</div>
	<div class="listbut" >
		<h:commandButton styleClass="buttonbg" value="保存" action="#{QuestionClassBB.updateEntityQuestionClass}" reRender="msgPaneladd"/> 
		<h:commandButton styleClass="buttonbg" value="返回" action="#{QuestionClassBB.toBack}" immediate="true"/>
    </div>
	</div>
</h:form>
</body>
</html>

